<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
    <title>代购绑定</title>
    <link rel="stylesheet" type="text/css" href="css/root.css"/>
    <link rel="stylesheet" type="text/css" href="css/pay/main.css"/>
    <link rel="stylesheet" type="text/css" href="css/order/order.css"/>
    <script type="text/javascript" src="js/base/jquery-3.1.1.min.js?ver=2.0.4" charset="utf-8"></script>
    <script type="text/javascript" src="js/base/underscore-min.js"></script>
    <script type="text/javascript" src="js/base/moment.min.js"></script>
    <script src="js/base/api.js"></script>
    <script src="js/base/base.js"></script>
    <script src="js/base/vue-filter.js"></script>
    <script src="js/base/vue.js"></script>

    <script type="text/javascript" src="js/base/magiclamp.js?ver=2.0.3" charset="utf-8"></script>
    <script type="text/javascript" src="js/order/bind_host.js" charset="utf-8"></script>

</head>
<body>
<div id="bind_host_by_wechat">
        <div id="root" class="h-t-bar">
            <div class="service-charge order-detail-status">
                关联代购：
                <span v-if="host_user.manage_type==0">不能关联</span>
                <span v-if="host_user.manage_type==1&&wechatuser_app">可以关联</span>
                <span v-if="host_user.manage_type==1&&!wechatuser_app">请先用微信登录代购APP</span>
                <span v-if="host_user.manage_type==2">已关联过</span>
            </div>
            <div class="padding-1 white">
                <div class="order-list">
                    <div class="left">当前账户：</div>
                    <div class="right">{{user.realname}}</div>
                </div>
            </div>
            <div class="padding-1 white" v-if="wechatuser_app">
                <div class="order-list">
                    <div class="left">当前微信：</div>
                    <div class="right">{{wechatuser_app.name}}</div>
                </div>
            </div>
            <div class="padding-1 white" v-if="!wechatuser_app">
                <div class="order-list">
                    <div class="left">当前微信：</div>
                    <div class="right">请先用微信登录代购APP</div>
                </div>
            </div>
            <div class="padding-1 white" >
                <div class="order-list">
                    <div class="left">关联代购：</div>
                    <div class="right">{{host_user.realname}}</div>
                </div>
            </div>

            <div class="pay-btn-group border-top">

                <button class="open-payorder-btn" type="button" v-if="host_user.manage_type==1&&wechatuser_app" @click="change_user()">关联
                </button>
            </div>

        </div>
</div>
</body>
</html>